/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/**
 * 配送员设置接口
 *  */
import request from '../utils/request';

export async function getSettingList(params) {
  return request('/Api/CityWaybill/cityWayBillList', {
    method: 'POST',
    body: params,
  });
}
export async function getStatisticsList(params) {
  return request('/v1/TotalDistribution/DeliveryFeeDirectPayment/getDeliveryPayList', {
    method: 'POST',
    body: params,
  });
}
export async function getDeliveryPayDetails(params) {
  return request('/v1/TotalDistribution/DeliveryFeeDirectPayment/getDeliveryPayDetails', {
    method: 'POST',
    body: params,
    nonceKey: 'courier_no,courier_phone',
  });
}

export async function onGrantDispat(params) {
  return request('/v1/TotalDistribution/DeliveryFeeDirectPayment/manualDistributionFee', {
    method: 'POST',
    body: params,
  });
}

export async function getDeliveryPaySetInfo(params) {
  return request('/v1/TotalDistribution/DeliveryFeeDirectPayment/getDeliveryPaySetInfo', {
    method: 'POST',
    body: params,
  });
}
export async function setDeliveryPaySetInfo(params) {
  return request('/v1/TotalDistribution/DeliveryFeeDirectPayment/setDeliveryPaySetInfo', {
    method: 'POST',
    body: params,
  });
}
export async function multiEditDeliveryPayStatus(params) {
  return request('/v1/TotalDistribution/DeliveryFeeDirectPayment/multiEditDeliveryPayStatus', {
    method: 'POST',
    body: params,
  });
}
export async function manualDistributionFeeDetails(params) {
  return request('/v1/TotalDistribution/DeliveryFeeDirectPayment/manualDistributionFeeDetails', {
    method: 'POST',
    body: params,
  });
}
